import 'package:flutter/material.dart';

import '../../../utils/widget/cascader_widget.dart';

/// ### 打开底部折叠面板
/// #### [context] 必填|上下文
/// #### [areaData] 必填|List|省市区基础数据
/// #### [callback] 必填|Function|回调函数

void openModalBottomSheet(
    BuildContext context, List areaData, Function callback) {
  showModalBottomSheet(
      context: context,
      isScrollControlled: true,
      builder: (BuildContext context) {
        return CascaderWidget(areaData,
            updateInTime: true, onConfirm: (data) => callback(data));
      });
}
